package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Systemdictionaryitem;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface SystemdictionaryitemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Systemdictionaryitem record);

    Systemdictionaryitem selectByPrimaryKey(Long id);

    List<Systemdictionaryitem> selectAll();

    int updateByPrimaryKey(Systemdictionaryitem record);

    List<Systemdictionaryitem> selectForList(QueryObject qo);
    List<Systemdictionaryitem> selectForCurriculum();

    /**
     * 根据目录id删除对应的明细
     * @param id parentId
     */
    void deleteByParentId(Long parentId);

    List<Systemdictionaryitem> selectByParentSn(String sn);
}